namespace eg._attribute;

// public class logAttribute : Attribute
// {
//     private string? log_info;
//     public logAttribute(string log_info)
//     {
//         this.log_info = log_info;
//         Console.WriteLine(log_info);
//     }
// }

[Log("Class class attribute")]
class useAttribute
{
    [Log("Field class attribute")]
    public string Test { get; set; }
}

class LogAttribute : Attribute
{
    public string Name;
    public LogAttribute(string name)
    {
        this.Name = name;
    }
    public void GetName()
    {
        Console.WriteLine($"my name is {Name}");
    }
}
